package com.qf.smsplatform.webmaster.dto;

import com.qf.smsplatform.webmaster.pojo.CheckNull;
import com.qf.smsplatform.webmaster.pojo.CheckType;
import org.springframework.util.ObjectUtils;

public class UserDto implements CheckNull {
    private String password;
    private String usercode;

    @Override
    public boolean isNull(CheckType type) {
        return ObjectUtils.isEmpty(usercode)|| ObjectUtils.isEmpty(password)|| password.length()<8 ||usercode.length()<5;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUsercode() {
        return usercode;
    }

    public void setUsercode(String usercode) {
        this.usercode = usercode;
    }
}
